﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WeChatMenu.aspx.cs" Inherits="SF.Ucenter.admin.weixin.WeChatMenu" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />  
    <title>自定义菜单</title> 
    <link href="../../scripts/artdialog/ui-dialog.css" rel="stylesheet" type="text/css" />
    <link href="../skin/default/style.css" rel="stylesheet" type="text/css" />
    <link href="../../css/pagination.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="../../scripts/artdialog/dialog-plus-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/laymain.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
    <style type="text/css">
        thead td {
            font-weight: bolder;
            text-align: center;
            font-size: 18px;
            height: 30px;
        }

        tbody tr td label {
            width: 100px;
        }

        .txtNameValue, .txtNameKey, .txtNameUrl {
            padding: 1px 2px;
            line-height: 20px;
            border: 1px solid #d4d4d4;
            background: #fff;
            vertical-align: middle;
            color: #333;
            font-size: 100%;
            margin: 2px 0px 2px;
        }

        .txtNameValue {
            width: 150px;
        }

        .txtNameKey {
            width: 150px;
        }

        .txtNameUrl {
            width: 200px;
            margin-right: 10px;
        }

        .form_table td {
            border: 1px solid #e1e1e1;
        }

        .innertable td {
            border: 0px;
        }

        .td_shengru {
            text-align: center;
            width: 120px;
        }

        .td_titleName {
            width: 45px;
            text-align: center;
        }

        .chu {
            font-weight: bolder;
        }
    </style>

</head>

<body class="mainbody">
    <form id="form1" runat="server">
        <!--内容-->
        <div id="floatHead" class="content-tab-wrap">
            <div class="content-tab">
                <div class="content-tab-ul-wrap">
                    <ul>
                        <li><a href="javascript:;" onclick="" class="selected">创建自定义菜单</a></li>
                        <li><a href="javascript:;" onclick="">操作说明</a></li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="tab-content">
            <table class="form_table">
                <thead>
                    <tr>
                        <td class="td_shengru">深度</td>
                        <td style="text-align: center;">第一列</td>
                        <td style="text-align: center;">第二列</td>
                        <td style="text-align: center;">第三列</td>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td class="td_shengru">主菜单按钮</td>
                        <td>

                            <table border="0" class="innertable">
                                <tr>
                                    <td class="td_titleName chu">Name:</td>
                                    <td>
                                        <asp:TextBox ID="txtTop1" runat="server" CssClass="txtNameValue"></asp:TextBox></td>
                                </tr>

                                <tr>
                                    <td class="td_titleName chu">Key:</td>
                                    <td>
                                        <asp:TextBox ID="txtTop1Key" runat="server" CssClass="txtNameKey"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td class="td_titleName chu">Url:</td>
                                    <td>
                                        <asp:TextBox ID="txtTop1Url" runat="server" CssClass="txtNameUrl"></asp:TextBox></td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <table border="0" class="innertable">
                                <tr>
                                    <td class="td_titleName chu">Name:</td>
                                    <td>
                                        <asp:TextBox ID="txtTop2" runat="server" CssClass="txtNameValue"></asp:TextBox></td>
                                </tr>

                                <tr>
                                    <td class="td_titleName chu">Key:</td>
                                    <td>
                                        <asp:TextBox ID="txtTop2Key" runat="server" CssClass="txtNameKey"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td class="td_titleName chu">Url:</td>
                                    <td>
                                        <asp:TextBox ID="txtTop2Url" runat="server" CssClass="txtNameUrl"></asp:TextBox></td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <table border="0" class="innertable">
                                <tr>
                                    <td class="td_titleName chu">Name:</td>
                                    <td>
                                        <asp:TextBox ID="txtTop3" runat="server" CssClass="txtNameValue"></asp:TextBox></td>
                                </tr>

                                <tr>
                                    <td class="td_titleName chu">Key:</td>
                                    <td>
                                        <asp:TextBox ID="txtTop3Key" runat="server" CssClass="txtNameKey"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td class="td_titleName chu">Url:</td>
                                    <td>
                                        <asp:TextBox ID="txtTop3Url" runat="server" CssClass="txtNameUrl"></asp:TextBox></td>
                                </tr>
                            </table>
                        </td>

                    </tr>
                    <tr>
                        <td colspan="3">&nbsp;
                        </td>
                    </tr>

                    <tr>
                        <td class="td_shengru">二级菜单No.1</td>
                        <td>
                            <table border="0" class="innertable">
                                <tr>
                                    <td class="td_titleName chu">Name:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu11" runat="server" CssClass="txtNameValue"></asp:TextBox></td>
                                </tr>

                                <tr>
                                    <td class="td_titleName chu">Key:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu11Key" runat="server" CssClass="txtNameKey"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td class="td_titleName chu">Url:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu11Url" runat="server" CssClass="txtNameUrl"></asp:TextBox></td>
                                </tr>

                            </table>
                        </td>
                        <td>
                            <table border="0" class="innertable">
                                <tr>
                                    <td class="td_titleName chu">Name:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu21" runat="server" CssClass="txtNameValue"></asp:TextBox></td>
                                </tr>

                                <tr>
                                    <td class="td_titleName chu">Key:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu21Key" runat="server" CssClass="txtNameKey"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td class="td_titleName chu">Url:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu21Url" runat="server" CssClass="txtNameUrl"></asp:TextBox></td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <table border="0" class="innertable">
                                <tr>
                                    <td class="td_titleName chu">Name:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu31" runat="server" CssClass="txtNameValue"></asp:TextBox></td>
                                </tr>

                                <tr>
                                    <td class="td_titleName chu">Key:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu31Key" runat="server" CssClass="txtNameKey"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td class="td_titleName chu">Url:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu31Url" runat="server" CssClass="txtNameUrl"></asp:TextBox></td>
                                </tr>
                            </table>
                        </td>

                    </tr>

                    <tr>
                        <td class="td_shengru">二级菜单No.2</td>
                        <td>
                            <table border="0" class="innertable">
                                <tr>
                                    <td class="td_titleName chu">Name:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu12" runat="server" CssClass="txtNameValue"></asp:TextBox></td>
                                </tr>

                                <tr>
                                    <td class="td_titleName chu">Key:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu12Key" runat="server" CssClass="txtNameKey"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td class="td_titleName chu">Url:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu12Url" runat="server" CssClass="txtNameUrl"></asp:TextBox></td>
                                </tr>

                            </table>
                        </td>
                        <td>
                            <table border="0" class="innertable">
                                <tr>
                                    <td class="td_titleName chu">Name:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu22" runat="server" CssClass="txtNameValue"></asp:TextBox></td>
                                </tr>

                                <tr>
                                    <td class="td_titleName chu">Key:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu22Key" runat="server" CssClass="txtNameKey"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td class="td_titleName chu">Url:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu22Url" runat="server" CssClass="txtNameUrl"></asp:TextBox></td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <table border="0" class="innertable">
                                <tr>
                                    <td class="td_titleName chu">Name:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu32" runat="server" CssClass="txtNameValue"></asp:TextBox></td>
                                </tr>

                                <tr>
                                    <td class="td_titleName chu">Key:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu32Key" runat="server" CssClass="txtNameKey"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td class="td_titleName chu">Url:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu32Url" runat="server" CssClass="txtNameUrl"></asp:TextBox></td>
                                </tr>
                            </table>
                        </td>

                    </tr>


                    <tr>
                        <td class="td_shengru">二级菜单No.3</td>
                        <td>
                            <table border="0" class="innertable">
                                <tr>
                                    <td class="td_titleName chu">Name:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu13" runat="server" CssClass="txtNameValue"></asp:TextBox></td>
                                </tr>

                                <tr>
                                    <td class="td_titleName chu">Key:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu13Key" runat="server" CssClass="txtNameKey"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td class="td_titleName chu">Url:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu13Url" runat="server" CssClass="txtNameUrl"></asp:TextBox></td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <table border="0" class="innertable">
                                <tr>
                                    <td class="td_titleName chu">Name:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu23" runat="server" CssClass="txtNameValue"></asp:TextBox></td>
                                </tr>

                                <tr>
                                    <td class="td_titleName chu">Key:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu23Key" runat="server" CssClass="txtNameKey"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td class="td_titleName chu">Url:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu23Url" runat="server" CssClass="txtNameUrl"></asp:TextBox></td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <table border="0" class="innertable">
                                <tr>
                                    <td class="td_titleName chu">Name:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu33" runat="server" CssClass="txtNameValue"></asp:TextBox></td>
                                </tr>

                                <tr>
                                    <td class="td_titleName chu">Key:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu33Key" runat="server" CssClass="txtNameKey"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td class="td_titleName chu">Url:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu33Url" runat="server" CssClass="txtNameUrl"></asp:TextBox></td>
                                </tr>
                            </table>
                        </td>

                    </tr>


                    <tr>
                        <td class="td_shengru">二级菜单No.4</td>
                        <td>
                            <table border="0" class="innertable">
                                <tr>
                                    <td class="td_titleName chu">Name:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu14" runat="server" CssClass="txtNameValue"></asp:TextBox></td>
                                </tr>

                                <tr>
                                    <td class="td_titleName chu">Key:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu14Key" runat="server" CssClass="txtNameKey"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td class="td_titleName chu">Url:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu14Url" runat="server" CssClass="txtNameUrl"></asp:TextBox></td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <table border="0" class="innertable">
                                <tr>
                                    <td class="td_titleName chu">Name:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu24" runat="server" CssClass="txtNameValue"></asp:TextBox></td>
                                </tr>

                                <tr>
                                    <td class="td_titleName chu">Key:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu24Key" runat="server" CssClass="txtNameKey"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td class="td_titleName chu">Url:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu24Url" runat="server" CssClass="txtNameUrl"></asp:TextBox></td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <table border="0" class="innertable">
                                <tr>
                                    <td class="td_titleName chu">Name:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu34" runat="server" CssClass="txtNameValue"></asp:TextBox></td>
                                </tr>

                                <tr>
                                    <td class="td_titleName chu">Key:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu34Key" runat="server" CssClass="txtNameKey"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td class="td_titleName chu">Url:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu34Url" runat="server" CssClass="txtNameUrl"></asp:TextBox></td>
                                </tr>
                            </table>
                        </td>

                    </tr>
                    <tr>
                        <td class="td_shengru">二级菜单No.5</td>
                        <td>
                            <table border="0" class="innertable">
                                <tr>
                                    <td class="td_titleName chu">Name:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu15" runat="server" CssClass="txtNameValue"></asp:TextBox></td>
                                </tr>

                                <tr>
                                    <td class="td_titleName chu">Key:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu15Key" runat="server" CssClass="txtNameKey"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td class="td_titleName chu">Url:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu15Url" runat="server" CssClass="txtNameUrl"></asp:TextBox></td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <table border="0" class="innertable">
                                <tr>
                                    <td class="td_titleName chu">Name:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu25" runat="server" CssClass="txtNameValue"></asp:TextBox></td>
                                </tr>

                                <tr>
                                    <td class="td_titleName chu">Key:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu25Key" runat="server" CssClass="txtNameKey"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td class="td_titleName chu">Url:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu25Url" runat="server" CssClass="txtNameUrl"></asp:TextBox></td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <table border="0" class="innertable">
                                <tr>
                                    <td class="td_titleName chu">Name:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu35" runat="server" CssClass="txtNameValue"></asp:TextBox></td>
                                </tr>

                                <tr>
                                    <td class="td_titleName chu">Key:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu35Key" runat="server" CssClass="txtNameKey"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td class="td_titleName chu">Url:</td>
                                    <td>
                                        <asp:TextBox ID="txtMenu35Url" runat="server" CssClass="txtNameUrl"></asp:TextBox></td>
                                </tr>
                            </table>
                        </td>

                    </tr>

                </tbody>
            </table>
        </div>
        <div class="tab-content" style="display: none">

            <div style="padding-left: 20px; padding-bottom: 20px; line-height: 24px; font-size: 16px;">
                <h3>自定义菜单创建说明及规则，请仔细阅读</h3>
                <ul style="list-style-type: circle; padding-left: 20px;">
                    <li style="list-style-type: circle;">（1）使用菜单需要成为“服务号”，且开启了高级功能。请到微信平台【高级功能 > 开发者模式】下获取AppId和AppSecret，并将其在商户公众号配置中填写好</li>
                    <li style="list-style-type: circle;">（2）点击进入服务号初始显示的主菜单按钮个数为1-3个</li>
                    <li style="list-style-type: circle;">（3）如果设置了二级菜单按钮个数可为1-5个</li>
                    <li style="list-style-type: circle;">（4）按钮描述，即按钮名字，不超过16个字节，子菜单不超过40个字节</li>
                    <li style="list-style-type: circle;">（5）如果名称不填，此按钮将无法被系统创建</li>
                    <li style="list-style-type: circle;">（6）如果一级菜单为空，该列所有设置的二级菜单都会视为无效设定</li>
                    <li style="list-style-type: circle;">（7）“Key”对应自定义回复管理里的关键词,以及营销工具里每个活动的关键词、这个根据平台现有功能具体设定，详情可联系客服查询</li>
                    <li style="list-style-type: circle;">（8）“Url”为跳转到指定的页面。每个菜单“Key”和“Url”只能填写一项，如果2个都填写，则按照“Url”跳转来设置</li>
                    <li style="list-style-type: circle;">（9）如果要快速看到微信上的菜单创建效果，需要重新关注，否则需要耐心等待至次日生效</li>                  
                </ul>
                <h3 style="color:red;">注意事项：</h3>
                <ul style="list-style-type: circle; padding-left: 20px;">
                    <li style="list-style-type: circle;">（1）商城首页 Url: http://115.159.51.194/mall/index.aspx?appnum=你的AppId <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;例：http://119.29.39.219/mall/index.aspx?appnum=wx0b7e3ae9164b0fd9 </li>
                    <li style="list-style-type: circle;">（2）分销模式->东家管理：http://115.159.51.194/mycenterusers/index.aspx?appnum=你的AppId （非分销商城无需创建） </li>
                    <li style="list-style-type: circle;">（3）营销模式 Key: getqrcodeimg（获取推广二维码） </li>
                    <li style="list-style-type: circle;">（4）快递链接 Url: http://m.kuaidi100.com </li>             
                </ul>
            </div>
        </div>


        <!--/内容-->

        <!--工具栏-->
        <div class="page-footer" runat="server" id="div_gongju">
            <div class="btn-list">
                <asp:Button ID="btnSubmit" runat="server" Text="生成自定义菜单" CssClass="btn" OnClick="btnSubmit_Click" />
                <asp:Button ID="btnDelMenu" runat="server" Text="删除当前菜单" CssClass="btn yellow" OnClick="btnDelMenu_Click" />

            </div>
            <div class="clear"></div>
        </div>
        <!--/工具栏-->
    </form>
</body>
</html>
